package com.lei.chinese_herbal_medicine.Service;

import com.lei.chinese_herbal_medicine.Entity.Model;
import com.lei.chinese_herbal_medicine.Entity.PageData;
import com.lei.chinese_herbal_medicine.Entity.Result;
import org.springframework.web.multipart.MultipartFile;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * (Model)表服务接口
 *
 * @author makejava
 * @since 2024-01-18 10:05:27
 */
public interface ModelService {
    List<Model> selectByModel(Model model, PageData pageData);

    void handelModel(String basicModel,Model model) throws InterruptedException, IOException;

    boolean getModelData(String id, Result result);

    boolean changeModelStatus(String targetUseModelId, String currentUseModelId);

    boolean deleteModel(String id);

    Map recognition(String userId,MultipartFile file) throws IOException;
}


